import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';

/**
 * 番茄达人邀请码
 */
@Entity()
export class ExpertShare {
    @PrimaryGeneratedColumn()
    id!: number;

    @Column('bigint')
    user_id!: number;

    @Column('varchar')
    share_url!: string;

    @Column('varchar')
    share_token!: string;

    @Column({type:'varchar',nullable:true})
    cookie_token?: string;

    /**
     * 邀请码状态，是否出现验证码
     */
    @Column('int')
    status!:number
}
